package cn.sportvip.dto.user;

import java.io.Serializable;

import cn.sportvip.Sport.Gender;
import cn.sportvip.entity.user.Credential;
import cn.sportvip.entity.user.UserInfo;

public class UserInfoDto implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public String phone;
	public String email;
	public String nickName;
	public String avatar;
	public long birthday;
	public int id;
	public Gender gender;
	
	public UserInfoDto(){}
	
	public UserInfoDto(UserInfo userInfo, Credential credential) {
		phone = credential.getPhone();
		email = credential.getEmail();
		nickName = userInfo.getNickName();
		avatar = userInfo.getAvatar();
		birthday = userInfo.getBirthday();
		id = userInfo.getId();
		gender = userInfo.getGender();
	}

}
